<?php

header('Content-Type: text/html; charset=utf-8');

function foo($one){
	static $x = '';
	
	if($one=='start'){
		$x = microtime(true);
	}
	if($one=='end'){
		$a = microtime(true);
		$str = $a-$x;
		return $str;
		
	}
	
	
}
echo foo('start');

echo '<h2>1231321321321321</h2>';
echo '<h2>1231321321321321</h2>';
echo '<h2>1231321321321321</h2>';
echo '<h2>1231321321321321</h2>';
echo '<h2>1231321321321321</h2>';
echo '<h2>1231321321321321</h2>';
echo '<h2>1231321321321321</h2>';
echo '<h2>1231321321321321</h2>';

for($i=0;$i<1000000;$i++){
	
}

echo foo('end');






?>